package com.zpark.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class PasswordEncoderDemo {
    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String rawPassword = "Aa123456";
        String encodedPassword = encoder.encode(rawPassword);
        
        System.out.println("密文: " + encodedPassword);
        // 示例输出: $2a$10$nqWzvcMOFf2Bm1Jo2kMXH.FaxHtLgX8D.gDSbv9bt3OwkisABbmma
    }
}
